/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-03-13 14:55:47
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-03-13 16:56:47
 * @FilePath: \utils_react_manager\app\src\views\User\component\CustRadio\index.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React, { forwardRef, useImperativeHandle } from 'react';
import { Button } from 'antd';

const CustRadio: React.FC = forwardRef((props: any, ref: any) => {
  const {  } = props;
  
  const handleUpdate = () => {
    console.log('子组件的方法');
  }
  
  
  useImperativeHandle(ref, () => ({
    handleUpdate
  }));
  

  return (
    <div>
      <Button onClick={handleUpdate}>子组件的按纽</Button>
    </div>
  );
});


export default CustRadio;